package com.ss.android.article.base.feature.detail.model;

import com.ss.android.b.a.BaseAdsData;
import org.json.JSONObject;

public final class TaoBaoSdkAdsData extends BaseAdsData {
    public long ad_id;

    public TaoBaoSdkAdsData() {

    }

    public final void initWithJO(JSONObject jo) {
        if(jo != null) {
            super.initWithJO(jo);
            this.ad_id = jo.optLong("ad_id");
            jo.optString("slot_id");
        }
    }

    public final boolean isValid() {
        return this.adType == 3
                && this.ad_id > 0
                && super.isValid();
    }
}

